Fix installation decision to make the DISTDIR and DESTDIR absolute before
authoremellor@leeni.uk.xensource.com <emellor@leeni.uk.xensource.com>
Sat, 15 Oct 2005 11:55:03 +0000 (12:55 +0100)
committeremellor@leeni.uk.xensource.com <emellor@leeni.uk.xensource.com>
Sat, 15 Oct 2005 11:55:03 +0000 (12:55 +0100)
comparing them.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
tools/examples/Makefile

index 83a9f7c1018d670a77240d4c61b26becdef7c99b..f94a2224661c8aaf528863c3150a8fb5f6a8ca12 100644 (file)
@@ -32,7 +32,9 @@ XEN_HOTPLUG_SCRIPTS = xen-backend.agent
 UDEV_RULES_DIR = /etc/udev/rules.d
 UDEV_RULES = xen-backend.rules
 
-ifeq ($(findstring $(DISTDIR),$(DESTDIR)),$(DISTDIR))
+DI = $(shell readlink -f $(DISTDIR))
+DE = $(shell readlink -f $(DESTDIR))
+ifeq ($(findstring $(DI),$(DE)),$(DI))
 HOTPLUGS=install-hotplug install-udev
 else
 ifeq ($(shell [ -x /sbin/udev ] && [ ! -z `udev -V` ] && [ `/sbin/udev -V` -ge 059 ] && echo 1),1)